import Competent.ACompement;
import Composist.Composist;
import Leaf.Leaf;

public class App {
    public static void main(String[] args) throws Exception {
        System.out.println("Hello, World!");
        ACompement button = new Composist();
        button.AddChild(new Leaf("叶子111"));
        button.AddChild(new Leaf("叶子112"));
        button.AddChild(new Leaf("叶子113"));
        ACompement mid = new Composist();
        mid.AddChild(button);
        mid.AddChild(new Leaf("叶子211"));
        mid.AddChild(new Leaf("叶子212"));
        ACompement top = new Composist();
        top.AddChild(mid);
        top.AddChild(new Leaf("311"));
        top.Func();
    }
}
